package com.eastseeway.radioproject.engineer;

import java.util.Objects;

public class EngineerItemBean {
    private String itemTitle;
    private String itemValue;

    public EngineerItemBean(String itemTitle, String itemValue) {
        this.itemTitle = itemTitle;
        this.itemValue = itemValue;
    }

    public String getItemTitle() {
        return itemTitle;
    }

    public void setItemTitle(String itemTitle) {
        this.itemTitle = itemTitle;
    }

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    // 在 EngineerItemBean 中添加唯一性校验


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EngineerItemBean that = (EngineerItemBean) o;
        return Objects.equals(itemTitle, that.itemTitle) && Objects.equals(itemValue, that.itemValue);
    }

    @Override
    public int hashCode() {
        return Objects.hash(itemTitle, itemValue);
    }
}
